<script>
window.requestAnimationFrame(function (time) {
    alert("time " + time);
});
</script>
